# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-scp
_pkgname=scp.py
pkgver=0.14.4
pkgrel=1
pkgdesc="scp module for paramiko"
url="https://github.com/jbardin/scp.py"
arch="noarch"
license="LGPL-2.1-or-later"
depends="py3-paramiko py3-six py3-cffi py3-idna py3-cparser"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/jbardin/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-scp" # Backwards compatibility
provides="py-scp=$pkgver-r$pkgrel" # Backwards compatibility

check() {
	python3 setup.py check
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d7bd39e7cd671f4143f1bc15e664a5ff5f45fbea7c39cc128c635d327ba9f8d6e7cee4b6115d987de0bf016e995e30e4c58335e4ca5d38ea08482c5e7c476ad4  py3-scp-0.14.4.tar.gz
"
